home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
MVWIN.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
55 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef mvwin
#ifndef NDEBUG
char *rcsid_mvwin = "$Header: c:/curses/portable/RCS/mvwin.c%v 2.0 1992/11/15 03:29:01 MH Rel $";
#endif
/*man-start*********************************************************************
mvwin() - move window
X/Open Description:
PDCurses Description:
There is no additional PDCurses functionality.
X/Open Return Value:
The mvwin() routine returns OK on success and otherwise ERR
is returned.
PDCurses Errors:
It is an error to call this function with a NULL window pointer.
It is also an error to address a position that is outside the
bounds of the specified window.
Portability:
PDCurses int mvwin( WINDOW* win, int y, int x );
X/Open Dec '88 int mvwin( WINDOW* win, int y, int x );
BSD Curses int mvwin( WINDOW* win, int y, int x );
SYS V Curses int mvwin( WINDOW* win, int y, int x );
**man-end**********************************************************************/
int mvwin(WINDOW *win, int y, int x)
{
if (win == (WINDOW *)NULL)
return( ERR );
if (win->_begy + win->_maxy > LINES)
return( ERR );
if (win->_begx + win->_maxx > COLS)
return( ERR );
win->_begy = y;
win->_begx = x;
touchwin(win);
return( OK );
}